package com.itheima.fanxing.demo3;

import javax.lang.model.element.NestingKind;

public class Demo3 {
    public static void main(String[] args) {
        FanXingImpl<String > fanXingImp1=new FanXingImpl<>();
        fanXingImp1.fan("tt");
        FanXingImp2 fanXingImp2=new FanXingImp2();
        fanXingImp2.fan(12);
    }
}
interface FanXing<T>{
    void fan(T t);
}

class FanXingImpl<T> implements FanXing<T>{
    @Override
    public void fan(T t) {
        System.out.println(t);
    }
}
class FanXingImp2 implements FanXing<Integer>{

    @Override
    public void fan(Integer a) {
        System.out.println(a);
    }
}